package com.fa4j.system.file.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fa4j.common.data.model.Base;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 系统文件
 *
 * @since 2025-06-12 08:59:46
 */
@Data
@TableName(value = "t_sys_file", autoResultMap = true)
@Schema(description = "系统文件")
public class SysFile extends Base {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "文件分组")
    private String fileGroup;

    @Schema(description = "文件名称")
    private String fileName;

    @Schema(description = "文件路径")
    private String filePath;

    @Schema(description = "文件大小")
    private Long fileSize;

    @Schema(description = "内容类型")
    private String contentType;

    @Schema(description = "文件md5")
    private String fileMd5;

    @Schema(description = "文件路径")
    @TableField(exist = false)
    private String fileUrl;

    @Schema(description = "操作人ID")
    private Long operatorId;


}
